﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MoreExtentions;

namespace Benchmark
{
    class Program
    {
        static void Main(string[] args)
        {
            const int capacity = 100000;
            var test0 = new List<List<int>>();
            var test1 = new List<List<int>>();
            var lists = new List<List<int>>(capacity);

            for (int i = 1; i < capacity; i++)
                lists.Add(new List<int> { 1, 2, 3, 4, 5, 6, 7, 8, 9, 0 });

            Console.WriteLine("Starting");

            double t1 = DateTime.Now.Ticks;
            test0.AddDistinct(lists);
            double t2 = DateTime.Now.Ticks;
            //test1.AddDistinct2(lists);
            double t3 = DateTime.Now.Ticks;

            double addDistinct = (t2 - t1) / (t3 - t2);

            Console.WriteLine((t2 - t1).ToString());
            Console.WriteLine((t3 - t2).ToString());
            Console.WriteLine(addDistinct);
            Console.ReadKey();
        }
    }
}
